import request from '@/utils/request'

// 查询用户签到记录列表
export function listSignIns(query) {
  return request({
    url: '/core/signIns/list',
    method: 'get',
    params: query
  })
}

// 查询用户签到记录详细
export function getSignIns(id) {
  return request({
    url: '/core/signIns/' + id,
    method: 'get'
  })
}

// 新增用户签到记录
export function addSignIns(data) {
  return request({
    url: '/core/signIns',
    method: 'post',
    data: data
  })
}

// 修改用户签到记录
export function updateSignIns(data) {
  return request({
    url: '/core/signIns',
    method: 'put',
    data: data
  })
}

// 删除用户签到记录
export function delSignIns(id) {
  return request({
    url: '/core/signIns/' + id,
    method: 'delete'
  })
}
